$.ajax({
    url: '/user.do',
    method: 'GET',
    success: function (result) {
        if (result && result.length > 0) {
            for (var i = 0; i < result.length; i++) {
                var val = result[i];
                $(`<tr>
                <td>${val.id}</td>
                <td>${val.username}</td>
                <td>${val.phone}</td>
                <td>${val.state == 1 ? '正常' : '冻结'}</td>
                <td>
                <button class="am-btn am-btn-success">重置密码</button>
				<button  class="am-btn am-btn-danger">冻结</button>
                </td>
                </tr>`).appendTo('tbody')
            }
        }
    }
})